import Layout from '@/layout'

export default {
  path: '/',
  component: Layout,
  redirect: '/flow',
  children: [{
    path: 'flow',
    component: () => import('@/views/flow/index'),
    children: [{
      path: 'flow_download/:documentFlowId',
      component: () => import('@/views/flow/flow_download/index'),
      name: 'download',
      meta: {
        defaultActive: '/flow/flow_download/0'
      }
    }, {
      path: 'flow_borrow/:documentFlowId',
      component: () => import('@/views/flow/flow_borrow/index'),
      name: 'borrow',
      meta: {
        defaultActive: '/flow/flow_borrow/0'
      }

    }, {
      path: 'flow_delete/:documentFlowId',
      component: () => import('@/views/flow/flow_delete/index'),
      name: 'delete',
      meta: {
        defaultActive: '/flow/flow_delete/0'
      }

    }, {
      path: 'flow_new/:documentFlowId',
      component: () => import('@/views/flow/flow_new/index'),
      name: 'new',
      meta: {
        defaultActive: '/flow/flow_new/0'
      }

    }, {
      path: 'flow_modify/:documentFlowId',
      component: () => import('@/views/flow/flow_modify/index'),
      name: 'modify',
      meta: {
        defaultActive: '/flow/flow_modify/0'
      }

    }, {
      path: 'flow_list_todo',
      component: () => import('@/views/flow/flow_list_todo/index'),
      name: 'todo'

    }, {
      path: 'flow_list_start',
      component: () => import('@/views/flow/flow_list_start/index'),
      name: 'start',
      meta: {
        defaultActive: '/flow/flow_list_start'
      }

    }, {
      path: 'flow_list_participant',
      component: () => import('@/views/flow/flow_list_participant/index'),
      name: 'participant',
      meta: {
        defaultActive: '/flow/flow_list_participant'
      }

    }, {
      path: 'document_release_check',
      component: () => import('@/views/flow/document_release_check/index'),
      name: 'check',
      meta: {
        defaultActive: '/flow/document_release_check'
      }

    },
    // {
    // path: 'document_release_list',
    // component: () => import('@/views/flow/document_release_list/index')
    // }
    {
      path: 'flow_participant_view',
      component: () => import('@/views/flow/flow_preview/index'),
      name: 'preview',
      meta: {
        defaultActive: '/flow/flow_list_participant'
      },
      alias: 'participant'

    },
    {
      path: 'flow_start_preview',
      component: () => import('@/views/flow/flow_preview/index'),
      name: 'preview',
      meta: {
        defaultActive: '/flow/flow_list_start'
      },
      alias: 'start'

    },
    {
      path: 'document_state',
      component: () => import('@/views/flow/document_state/index'),
      name: 'state',
      meta: {
        defaultActive: '/flow/document_state'
      }

    },
    {
      path: 'file_information',
      component: () => import('@/views/flow/file_information/index'),
      name: 'information',
      meta: {
        defaultActive: '/flow/document_state'
      }

    },
    {
      path: 'flow_standing_book',
      component: () => import('@/views/flow/flow_standing_book'),
      name: 'book',
      meta: {
        defaultActive: '/flow/flow_standing_book'
      }

    },
    {
      path: 'flow_document_manage',
      component: () => import('@/views/flow/flow_document_manage'),
      name: 'documentManage',
      meta: {
        defaultActive: '/flow/flow_document_manage'
      }
    }

    ]
  }]
}
